Learning Objectives

After completing this lesson, you’ll be able to:

Resources

Exercise

Jennifer

Jennifer is working on a workspace to calculate the tsunami flood risk for all addresses in the city. The flood risk score combines closeness to the shoreline and elevation above sea level. It is on a scale from one to five (1-5) and is calculated using this table:

    Elevation (meters above sea level)
    0-10m 10-25m 25-60m
Distance from Shoreline (meters) 100m 1 2 3
200m 2 3 4
300m 3 4 5

She has built the workspace so that each address has an elevation and distance from the shoreline. Now, she wants to use conditional values to calculate the flood risk score.

1) Open Starting Workspace

Flood risk zones and addresses

2) Finish Configuring AttributeManager

Selecting Conditional Value...

Condition Statement with four outcomes

Defining the first test

Defining Logic and setting the Attribute Value

Dialog with remaining tests entered

FloodRisk with 6 possible values

3) Add Inspector

We would like to separate the data into layers for easier inspection. We can accomplish this with an Inspector transformer with a Group By setting.

Result with five flood risk groups of address points

Congratulations. You have successfully used conditional values to filter and map features with a single transformer.

Leave Us Feedback on This Lesson